# -*- coding: utf-8 -*-
'''
Created on 2012-3-27
@author: chendaqing
@see: www.fashtime.com
'''
import os

from hashlib import md5
from flask import Flask, Blueprint, Response, request, flash, jsonify, g, current_app, \
    render_template, abort, redirect, url_for, session, send_from_directory
#from flaskext.bcrypt import check_password_hash, generate_password_hash
from flaskext.babel import gettext as _
import werkzeug

face = Blueprint("/", __name__) 

@face.route("/login", methods=["GET", "POST"])
def user_login():
    pass

@face.route("/logout")
def user_logout():
    pass

@face.route("/regist", methods=["GET", "POST"])
def user_reg():
    pass

@face.route("/cooperation")
def cooperation_explain():
    #合作信息内容
    pass

@face.route("/favicon.ico")
def favicon():
    pass
    '''
    return send_from_directory(os.path.join(current_app.root_path, 'static'),
                               'favicon.ico', mimetype='image/vnd.microsoft.icon')
    '''

if __name__ == "__main__":
    pwd_hash = werkzeug.generate_password_hash('daqing1221')
    print len(pwd_hash)
    print pwd_hash
    #�ж����������Ƿ�һ��
    flag = werkzeug.check_password_hash(pwd_hash, 'daqing1221')
    print flag
